# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-zope-hookable
pkgver=5.4
pkgrel=2
pkgdesc="Represents the core of the Zope hookable Architecture"
arch=('loong64' 'x86_64')
url="https://github.com/zopefoundation/zope.hookable"
license=('ZPL')
depends=('python-setuptools')
checkdepends=('python-nose')
source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.hookable/archive/$pkgver.tar.gz")
sha512sums=('e109589dc67b155be99bceb5cb100ab1a728d3201126b2b17125054fc3b3f4f3424a11d28d222557ab74be3d67289e26dd6f3f161544970e09aad26e993e3103')

build() {
  cd "$srcdir"/zope.hookable-$pkgver
  python setup.py build
}

check() {
  cd "$srcdir"/zope.hookable-$pkgver
  python setup.py nosetests
}

package() {
  cd "$srcdir"/zope.hookable-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}

# vim:set ts=2 sw=2 et:
